package com.qf.smsplatfrom.mapper;

import com.qf.smsplatfrom.pojo.TNotify;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NotifyMapper {

    @Select("select * from t_notify")
    List<TNotify> showAll();

    int updateNotify(TNotify tNotify);

    @Insert("insert into t_notify(tag,desp,notify_state,cache_state) values(#{tag},#{desp},#{notifyState},#{cacheState})")
    int insertNotify(TNotify tNotify);


    int deleteNotify(@Param("ids") List<Integer> ids);
}
